package com.zeh.billing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zeh.billing.config.JsonDateSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zeh
 * @since 2021-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Cmoney对象", description="")
public class Cmoney implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private int id;

    @ApiModelProperty(value = "用户编号")
    private String cid;


    @ApiModelProperty(value = "卡号")
    private String cardid;

    @ApiModelProperty(value = "历史消费金额")
    private Double hismoney;

    @ApiModelProperty(value = "剩余金额")
    private Double lastmoney;

    @ApiModelProperty(value = "创建时间")
    @JsonSerialize(using= JsonDateSerializer.class)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "充值卡数")
    private  int lastcard;

    @ApiModelProperty(value = "充值卡数")
    private  int nowcard;

    @ApiModelProperty(value = "类型")
    private  int ctype;
}
